package com.qf.day07.poly;

/**
 * 长剑类
 * 子类
 */
public class LongSword extends Weapon{

    // 暴击值
    private int crit ;

    // 剑系专精等级
    private int swordLevel;

    public LongSword() {
    }

    public LongSword(String name, int damage, int range, int durability, int levelLimit, int crit, int swordLevel) {
        super(name, damage, range, durability, levelLimit);
        this.crit = crit;
        this.swordLevel = swordLevel;
    }

    public int getCrit() {
        return crit;
    }

    public void setCrit(int crit) {
        this.crit = crit;
    }

    public int getSwordLevel() {
        return swordLevel;
    }

    public void setSwordLevel(int swordLevel) {
        this.swordLevel = swordLevel;
    }

    @Override
    public String toString() {
        return "LongSword{" +
                "crit=" + crit +
                ", swordLevel=" + swordLevel +
                "} " + super.toString();
    }
}
